package com.dge.app;

import com.dge.app.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;
import ohos.agp.window.service.Window;
import ohos.agp.window.service.WindowManager;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        Window window = getWindow();
        // window.setTransparent(true);// 开启 透明功能
        // window.setStatusBarColor(Color.rgb(25,188,255));
        // window.setStatusBarVisibility(0);// 0隐藏 1 显示 导航状态条问题
        // window.setNavigationBarColor(Color.rgb(25,188,255));
        // 沉浸式状态栏
        // 状态栏设置为透明
        window.addFlags(WindowManager.LayoutConfig.MARK_TRANSLUCENT_STATUS);
        super.setMainRoute(MainAbilitySlice.class.getName());
    }
}
